
<div class="col-jy-{num}">
		<div class="ibox float-e-margins">
            <div class="ibox-content" style="padding-left:15px">
                <div class="echarts" id="echarts-chart-{ecid}" style="height: 310px;display: none;"></div>
				<div class="spiner-example" id="echarts-loading-{ecid}">
						<div class="sk-spinner sk-spinner-three-bounce">
							<div class="sk-bounce1"></div>
							<div class="sk-bounce2"></div>
							<div class="sk-bounce3"></div>
						</div>
                </div>
            </div>
        </div>
</div>
<script type="text/javascript">
setTimeout(function(){
 var res = {datas};
	   if(res){
		   $("#echarts-loading-{ecid}").hide()
		   $("#echarts-chart-{ecid}").show();
			pie_chart_{ecid}(res);
	   }
} ,500);
function pie_chart_{ecid}(res){
	require(['echarts'],function (echarts) {
	var myChart = echarts.init(document.getElementById("echarts-chart-{ecid}"));
	var legend=[];
	$.each(res.datas,function(k,v){
		legend.push(v.name);
	});
	var series=[];
	$.each(res.datas,function(k,v){
		series.push({
				name: v.name,
				type: "line",
				data: v.value,
				smooth:true,
				symbolSize:2,
				itemStyle: {normal: {areaStyle: {type: 'default'}}},
		});
	});
	var option = {
			title : {
				text: scope.check_show_lang('{title}'),
			},
			tooltip : {
				trigger: 'axis',
				position: function (point) {
                            return [point[0], '10%'];
                        },
                        axisPointer: {
                            type: 'line'
                        }
			},
			legend: {
				data:legend
			},
			toolbox: {
				show : true,
				feature : {
					mark : {show: true},
					dataView : {show: true, readOnly: false},
					magicType : {show: true, type: ['line', 'bar', 'stack', 'tiled']},
					restore : {show: true},
					saveAsImage : {show: true}
				}
			},
			calculable : true,
			xAxis : [
				{
					type : 'category',
					boundaryGap : false,
					data : res.xdatas
				}
			],
			yAxis : [
				{
					type : 'value'
				}
			],
			series : series,
		};
		myChart.setOption(option);
		window.onresize = myChart.resize;
	});
}
</script>